//package org.example.thread.futuretask.demo2;
//
//
//import java.util.concurrent.Callable;
//import java.util.concurrent.ExecutionException;
//import java.util.concurrent.FutureTask;
//import java.util.concurrent.LinkedBlockingQueue;
//
//class QueenFutureTask<T> extends FutureTask<T> {
//    public QueenFutureTask(Callable<T> callable) {
//        super(callable);
//    }
//
//    public QueenFutureTask(Runnable runnable, T result) {
//        super(runnable, result);
//    }
//
////    LinkedBlockingQueue<String> block = new LinkedBlockingQueue<>();//用于保存Future
//
//    @Override
//    protected void done() {
//        try {
////            block.add((String) this.get());//把下载完的图片加入到阻塞队列中
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        } catch (ExecutionException e) {
//            e.printStackTrace();
//        }
//    }
//}
//
